package com.hezuti.common.email;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class MyAuthenticator extends Authenticator {
	private String name;
	private String pwd;

	public MyAuthenticator(String name, String pwd) {
		this.name = name;
		this.pwd = pwd;
	}

	public PasswordAuthentication getPasswordAuthentication() {
		return new PasswordAuthentication(this.name, this.pwd);
	}

}
